#!/usr/bin/env python
# -*- coding:utf-8 -*-
# author:HeWenjun
# datetime:2023/11/9 15:24
# software: PyCharm

def assemble_the_body(name, version, description, website):
    subject = f'咪咕OA{name}{version}版本提测申请'
    html_text = '''
            <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            table
        </style>
    </head>
    <body>
    <p>各位好：</p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;OA综合-''' + name + '''上线内容已开发完成并完成内测，请协调相关同事给予专业测试支持，并请在上线前邮件回复测试结果。</p>
    <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;本次咪咕OA''' + name + "" + version + '''版本上线涉及覆盖功能点如下:</p>
    <p>
        ''' + description + '''
    </p>
    <table border="1" bordercolor = "#000000" cellspacing="0" cellpadding="2" style="font-size:15px">
        <tr>
            <th>项目名称</th>
            <td width="450px" align="center">咪咕OA''' + name + '''</td>
            <th width="130px">版本号</th>
            <td width="130px" align="center">''' + version + '''</td>
        </tr>
        <tr>
            <th>项目经理</th>
            <td align="center">吴康</td>
            <th>测试负责人</th>
            <td align="center">何文俊</td>
        </tr>
        <tr>
            <th>验收测试环境</th>
            <td align="center"><a href="''' + website + '''">''' + website + '''</a></td>
            <th>服务器配置修改</th>
            <td align="center">无</td>
        </tr>
        <tr>
            <th>数据库变更说明</th>
            <td align="center">无</td>
            <th>提测功能说明</th>
            <td align="center">见测试报告</td>
        </tr>
        <tr>
            <th>预测试报告&风险</th>
            <td align="center">见测试报告</td>
            <th>修复缺陷列表</th>
            <td align="center">见测试报告</td>
        </tr>
        <tr>
            <th width="">本次修改影响范围</th>
            <td align="center">见测试报告</td>
            <td></td>
            <td></td>
        </tr>
        <tr>
            <th>特殊说明</th>
            <td colspan="3" align="center">无</td>
        </tr>
    </table>
    <div><br></div>
    <hr id="FMSigSeperator" style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
    <div><span id="_FoxFROMNAME"><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">何文俊 &nbsp; &nbsp; &nbsp; 测试工程师</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">手 机：18280435294</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">邮 箱：hewj@mochasoft.com.cn</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">网 址：http:// www.mochasoft.com.cn</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">地 址：<span
            style="line-height: normal;">北京市海淀区东北旺西路软件园（二期）华胜天成科研大楼5层（邮编：100193）</span></font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp; * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">摩卡软件（天津）有限公司 &nbsp; Mocha Software Co., Ltd.</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">品质缔造卓越，创新成就未来</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp; * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* * &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;* &nbsp;</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">未经发件人同意，请不要向任何人转发、复制本邮件内容。如果您并非该收件人或错收此邮件，请联系发件人</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">并退还此邮件，并请立即删除所有邮件及其附件。</font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;"><br></font></div><div
            style="font-family: &quot;Microsoft YaHei UI&quot;; font-size: 14px; line-height: 21px;"><font face="Yu Gothic"
                                                                                                           style="font-size: 12px;">Please do not forward or copy the contents of this email to anyone without the consent of the sender.If this e-mail is not originally intended for you, or received by you in error, please contact the sender by return e-mail and do not disclose its content to anyone and destroy all copies of the original message immediately.</font></div></div></span>
    </div>
    </body>
    </html>
            '''
    return subject,html_text
